package com.qf.mapper;

import com.qf.entity.User;
import com.qf.entity.UserDTO;

import java.util.List;

/**
 * @author GaoQiangLiang
 */
public interface UserMapper {
    User login(User user);

    List<User> findAll();

    boolean update(User user);

    List<User> findAll2(UserDTO userDTO);

    boolean deleteById(int id);

    boolean batchDelete(List<Integer> ids);

    boolean add(User user);

    Long getIdByUserName(String username);

    // 插入数据，这里之所以在写一个方法，是为了练习security的认证功能
    void save(User sysUser);

    User getUserByUserName(String username);

}
